<?php namespace App\Repositories\Eloquent\User\Entity;

class SocialiteUser
{
    const DEVICE_TYPE_ANDROID = 1;//安卓
    const DEVICE_TYPE_IOS = 2;//IOS
    const DEVICE_TYPE_OTHER = 3;//其他

    public $user_id;

    public $uid;

    public $open_id;

    public $name;

    public $user_name;

    public $nick_name;

    public $email;

    public $avatar;

    public $device_type;

    public $ip;

    public $invite_uid;

    public $params = [];

    public function toArray()
    {
        return json_decode(json_encode($this), true);
    }
}
